import request from '@/utils/request'
///manualData/excelFileShell
export function excelFileShell(data) {
  return request({
    url: '/manualData/excelFileShell',
    method: 'post',
    data
  })
}
///manualData/surfaceWaterListData
export function surfaceWaterListData(data) {
  return request({
    url: '/manualData/surfaceWaterListData',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

///manualData/busDataTempdataReportID
export function busDataTempdataReportID(params) {
  return request({
    url: '/manualData/busDataTempdataReportID',
    method: 'get',
    params,
  })
}

///manualData/importTemplateData
export function importTemplateData(params) {
  return request({
    url: '/manualData/importTemplateData',
    method: 'get',
    params,
  })
}

///manualData/deleteBusTempdataByReportId
export function deleteBusTempdataByReportId(params) {
  return request({
    url: '/manualData/deleteBusTempdataByReportId',
    method: 'get',
    params,
  })
}
///manualData/dataReportingAndSavingsyd
export function dataReportingAndSavingsyd(params) {
  return request({
    url: '/manualData/dataReportingAndSavingsyd',
    method: 'get',
    params,
  })
}

///manualData/dataReportingAndSaving
export function dataReportingAndSaving(params) {
  return request({
    url: '/manualData/dataReportingAndSaving',
    method: 'get',
    params,
  })
}


//==================导入数据管理==================

///tools/manualMonitordataLastTime
export function manualMonitordataLastTime(params ={}) {
  return request({
    url: '/tools/manualMonitordataLastTime',
    method: 'get',
    params,
  })
}

///drink/segment/maunalDataManagementsyd
export function maunalDataManagementsyd(params) {
  return request({
    url: '/drink/segment/maunalDataManagementsyd',
    method: 'get',
    params,
  })
}
///manualData/getManualMonitorData
export function getManualMonitorData(params) {
  return request({
    url: '/manualData/getManualMonitorData',
    method: 'get',
    params,
  })
}

///base/segment/list
export function getDmList(params) {
  return request({
    url: '/base/segment/list',
    method: 'get',
    params,
  })
}

// 因子列表；
export const bussinessItemData = (query) =>
    request({
        url: `/tools/bussinessItemData`,
        method: 'get',
        params: query
    })

    ///drink/segment/deleteMaunalSegmentsyd
    // 批量删除
    export function deleteMaunalSegmentsyd(params) {
      return request({
        url: '/drink/segment/deleteMaunalSegmentsyd',
        method: 'post',
        data: params,
      })
    }
    ///manualData/deleteManualMonitorData
    // 批量删除
    export function deleteManualMonitorData(params) {
      return request({
        url: '/manualData/deleteManualMonitorData',
        method: 'post',
        data: params,
      })
    }